home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / nethack.lha / nethack-3.1 / include / attrib.h < prev    next >
C/C++ Source or Header  |  1993-01-17  |  992b  |  43 lines

  1. /*    SCCS Id: @(#)attrib.h    3.1    90/22/02    */
  2. /* Copyright 1988, Mike Stephenson                  */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. /*    attrib.h - Header file for character class processing. */
  6.  
  7. #ifndef ATTRIB_H
  8. #define ATTRIB_H
  9.  
  10. #define A_STR    0
  11. #define A_INT    1
  12. #define A_WIS    2
  13. #define A_DEX    3
  14. #define A_CON    4
  15. #define A_CHA    5
  16.  
  17. #define A_MAX    6    /* used in rn2() selection of attrib */
  18.  
  19. #define ABASE(x)    (u.acurr.a[x])
  20. #define ABON(x)        (u.abon.a[x])
  21. #define AEXE(x)        (u.aexe.a[x])
  22. #define ACURR(x)    (acurr(x))
  23. #define ACURRSTR    (acurrstr())
  24. /* should be: */
  25. /* #define ACURR(x) (ABON(x) + ATEMP(x) + (u.umonnum == -1) ? ABASE(x) : MBASE(x)) */
  26. #define MCURR(x)    (u.macurr.a[x])
  27. #define AMAX(x)        (u.amax.a[x])
  28. #define MMAX(x)        (u.mamax.a[x])
  29.  
  30. #define ATEMP(x)    (u.atemp.a[x])
  31. #define ATIME(x)    (u.atime.a[x])
  32.  
  33. struct    attribs {
  34.     schar    a[A_MAX];
  35. };
  36.  
  37. extern struct attribs attrmax, attrmin;
  38.  
  39. #define ATTRMAX(x) (attrmax.a[x])
  40. #define ATTRMIN(x) (attrmin.a[x])
  41.  
  42. #endif /* ATTRIB_H */
  43.